package com.blog.service;


import com.blog.model.ArticleInfo;
import com.blog.model.ArticleUser;
import com.blog.model.StatisticalModel;
import com.blog.pojo.Article;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 *
 * @author JiaFuJun
 * @version v1.0
 * @date 2020-05-13
 */
public interface ArticleService {

    void save(Article record);

    void update(Article record);

    void del(Object id);

    Article selectByPrimaryKey(Object id);

    ArticleInfo selectById(Integer id);

    List<Article> getList(Article record);

    PageInfo<Article> pageList(Article record, Integer pageNo, Integer pageSize);

    Map<String,Object> getData();

    List<ArticleUser> recommend();

    void delByUserId(Integer id);

    StatisticalModel statisticalData(Integer id);

    void browseRecord(Article article);
}